<%@page import="cn.basic.GlobalConstants"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
   String path = request.getContextPath();
%>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <script type="text/javascript" src="<%=path%>/js/common.js"></script>
  <script type="text/javascript" src="<%=path%>/js/jquery.min.js"></script>
  <script type="text/javascript" src="<%=path%>/js/jqueryHelper.js"></script>
   <link rel="stylesheet" href="<%=path%>/css/style.css" type="text/css">
 <%
		String[] strGlobalMessagesArray = (String[])request.getAttribute(GlobalConstants.GLOBAL_MESSAGES);
		if(strGlobalMessagesArray != null)
		{
			String strGlobalMessages = "";
			for(int i = 0; i < strGlobalMessagesArray.length; i++)
			{
					strGlobalMessages += strGlobalMessagesArray[i] +"\\n";
			}	
%>			
		 <script type="text/javascript">
				alert("<%=strGlobalMessages%>");			
		 </script>	
<%			
		}				
%>
<script type="text/javascript">
	$(document).ready(function(){   
	    var listTR = $("tr[name='listTR']"); 
	    listTR.mouseout(mouseOutTR);  
	    listTR.mouseover(mouseOverTR); 
	    $("#dateContext tr:nth-child(odd) td").attr("bgcolor","#FFDAB9");
	});
	function mouseOutTR(){
	   var tr = $(this); 
	   tr.removeClass("tableTrMouse");
	}
	function mouseOverTR(){
	   var tr = $(this); 
	   tr.addClass("tableTrMouse");
	}
	function closeWindow(){
	    window.opener = null;
	    window.open("","_self"); //fix ie7 
	    window.close();
	}
</script>	